home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / program / gtld3656.lha / GadUtil / Docs / AutoDocs / 14.GU_TextWidth < prev    next >
Text File  |  1995-06-16  |  677b  |  24 lines

  1. gadutil.library/GU_TextWidth                     gadutil.library/GU_TextWidth
  2.  
  3.    NAME
  4.     GU_TextWidth -- Calculate the pixel length of a text string.
  5.  
  6.    SYNOPSIS
  7.     textwidth = GU_TextWidth(string, textattr)
  8.     D0                       A0      A1
  9.  
  10.     ULONG GU_TextWidth(STRPTR, struct TextAttr *);
  11.  
  12.    FUNCTION
  13.     Calculate the length of the text, using the specified font. This
  14.     function will open the required font, if it isn't opened before.
  15.  
  16.    INPUTS
  17.     string - NULL terminated text to calculate width of.
  18.  
  19.     textattr - a filled in TextAttr structure. Only the IText and
  20.            ITextFont fields of the structure have to be filled in.
  21.  
  22.    RESULT
  23.     textwidth - pixel length of the text
  24.